package com.xw.wuliu.adapter;

import java.util.ArrayList;

import com.xw.model.FuncData;
import com.xw.wuliu.adapter.item.FuncItem;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

public class FuncAdapter extends ListBaseAdapter{

	public FuncAdapter(Context aContext, ArrayList<?> aData) {
		super(aContext, aData);
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		FuncItem item = null;
		if( convertView == null ){
			item = new FuncItem(mContext,mLayoutInflater);
		}else{
			item = (FuncItem) convertView;
		}
		
		item.setView((FuncData) mData.get(position));
		
		return item;
	}

}
